#include<iostream>
using namespace std;

int main()               //求等差数列的第n项
{
    int a1,a2,n;
    cin >> a1 >> a2 >> n;
    int d = a2-a1;
    int an = a1 +(n-1)*d;
    cout << an << endl;
    return 0;
}